import request from '@/utils/request_axios'

// 登录接口
export function login (data) {
  return request({
    url: '/auth/login',
    method: 'post',
    data
  })
}
// 获取验证码
export function captcha () {
  return request({
    url: '/auth/captcha',
    method: 'get'
  })
}
// 获取外部菜单
export function getMenu () {
  return request({
    url: '/btos/index/nav',
    method: 'get'
  })
}
// 退出
export function logout () {
  return request({
    url: '/auth/logout',
    method: 'post'
  })
}
